<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: QwtVectorFieldSymbol Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_qwt_vector_field_symbol.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_qwt_vector_field_symbol-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QwtVectorFieldSymbol Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="qwt__vectorfield__symbol_8h_source.html">qwt_vectorfield_symbol.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for QwtVectorFieldSymbol:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="class_qwt_vector_field_symbol__inherit__graph.svg" width="352" height="112"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a0180db369ed4cc9ce379f9f87259e0ba"><td class="memItemLeft" align="right" valign="top"><a id="a0180db369ed4cc9ce379f9f87259e0ba"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_vector_field_symbol.html#a0180db369ed4cc9ce379f9f87259e0ba">QwtVectorFieldSymbol</a> ()</td></tr>
<tr class="memdesc:a0180db369ed4cc9ce379f9f87259e0ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:a0180db369ed4cc9ce379f9f87259e0ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa058379de261ea46836806f7ba1e95b8"><td class="memItemLeft" align="right" valign="top"><a id="aa058379de261ea46836806f7ba1e95b8"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_vector_field_symbol.html#aa058379de261ea46836806f7ba1e95b8">~QwtVectorFieldSymbol</a> ()</td></tr>
<tr class="memdesc:aa058379de261ea46836806f7ba1e95b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:aa058379de261ea46836806f7ba1e95b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af40e032a493977db97f01f51aef4d54c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_vector_field_symbol.html#af40e032a493977db97f01f51aef4d54c">setLength</a> (qreal <a class="el" href="class_qwt_vector_field_symbol.html#a1787b46abc657e989b32b2cceab8bf05">length</a>)=0</td></tr>
<tr class="separator:af40e032a493977db97f01f51aef4d54c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1787b46abc657e989b32b2cceab8bf05"><td class="memItemLeft" align="right" valign="top">virtual qreal&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_vector_field_symbol.html#a1787b46abc657e989b32b2cceab8bf05">length</a> () const =0</td></tr>
<tr class="separator:a1787b46abc657e989b32b2cceab8bf05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c78e02177c6edd9a932bb7926d024a1"><td class="memItemLeft" align="right" valign="top"><a id="a7c78e02177c6edd9a932bb7926d024a1"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_vector_field_symbol.html#a7c78e02177c6edd9a932bb7926d024a1">paint</a> (QPainter *) const =0</td></tr>
<tr class="memdesc:a7c78e02177c6edd9a932bb7926d024a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw the symbol/arrow. <br /></td></tr>
<tr class="separator:a7c78e02177c6edd9a932bb7926d024a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Defines abstract interface for arrow drawing routines.</p>
<p>Arrow needs to be drawn horizontally with arrow tip at coordinate 0,0. arrowLength() shall return the entire length of the arrow (needed to translate the arrow for tail/centered alignment). setArrowLength() defines arror length in pixels (screen coordinates). It can be implemented to adjust other geometric properties such as the head size and width of the arrow. It is <em>always</em> called before <a class="el" href="class_qwt_vector_field_symbol.html#a7c78e02177c6edd9a932bb7926d024a1" title="Draw the symbol/arrow.">paint()</a>.</p>
<p>A new arrow implementation can be set with QwtPlotVectorField::setArrowSymbol(), whereby ownership is transferred to the plot field. </p>

<p class="definition">Definition at line <a class="el" href="qwt__vectorfield__symbol_8h_source.html#l00032">32</a> of file <a class="el" href="qwt__vectorfield__symbol_8h_source.html">qwt_vectorfield_symbol.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a1787b46abc657e989b32b2cceab8bf05"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1787b46abc657e989b32b2cceab8bf05">&#9670;&nbsp;</a></span>length()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual qreal QwtVectorFieldSymbol::length </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>length of the symbol/arrow </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_vector_field_symbol.html#af40e032a493977db97f01f51aef4d54c">setLength()</a> </dd></dl>

<p>Implemented in <a class="el" href="class_qwt_vector_field_thin_arrow.html#ae7db134fafc5b97ecc8a712f5b986acc">QwtVectorFieldThinArrow</a>, and <a class="el" href="class_qwt_vector_field_arrow.html#addc705d50c81a4f2d0437343bd059d7d">QwtVectorFieldArrow</a>.</p>

</div>
</div>
<a id="af40e032a493977db97f01f51aef4d54c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af40e032a493977db97f01f51aef4d54c">&#9670;&nbsp;</a></span>setLength()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void QwtVectorFieldSymbol::setLength </td>
          <td>(</td>
          <td class="paramtype">qreal&#160;</td>
          <td class="paramname"><em>length</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set the length of the symbol/arrow </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_vector_field_symbol.html#a1787b46abc657e989b32b2cceab8bf05">length()</a> </dd></dl>

<p>Implemented in <a class="el" href="class_qwt_vector_field_thin_arrow.html#a5f7cf166cd4827a48749544d467df750">QwtVectorFieldThinArrow</a>, and <a class="el" href="class_qwt_vector_field_arrow.html#ac05cbe0b89b5227e22822b1c6aa5ca16">QwtVectorFieldArrow</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_qwt_vector_field_symbol.html">QwtVectorFieldSymbol</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
